<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{sdSaleOrderBean.page}"/>
		<f:event type="preRenderView" listener="#{sdSaleOrderBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Sd Sale Order entities"/>

	<ui:define name="header">
		Sd Sale Order
	</ui:define>

	<ui:define name="subheader">
		Search Sd Sale Order entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="sdSaleOrderBeanExampleSoNo" value="So No:"/>
						<h:panelGroup>
							<h:inputText id="sdSaleOrderBeanExampleSoNo" value="#{sdSaleOrderBean.example.soNo}"/>
							<h:message for="sdSaleOrderBeanExampleSoNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sdSaleOrderBeanExampleSysTermOfPayment" value="Sys Term Of Payment:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{sysTermOfPaymentBean.converter}" id="sdSaleOrderBeanExampleSysTermOfPayment" value="#{sdSaleOrderBean.example.sysTermOfPayment}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTermOfPaymentBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="sdSaleOrderBeanExampleSysTermOfPayment" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sdSaleOrderBeanExampleSdSaleOrderStatus" value="Sd Sale Order Status:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{sdSaleOrderStatusBean.converter}" id="sdSaleOrderBeanExampleSdSaleOrderStatus" value="#{sdSaleOrderBean.example.sdSaleOrderStatus}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdSaleOrderStatusBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="sdSaleOrderBeanExampleSdSaleOrderStatus" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sdSaleOrderBeanExampleSdCust" value="Sd Cust:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{sdCustBean.converter}" id="sdSaleOrderBeanExampleSdCust" value="#{sdSaleOrderBean.example.sdCust}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdCustBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="sdSaleOrderBeanExampleSdCust" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sdSaleOrderBeanExampleSysTitleName" value="Sys Title Name:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{sysTitleNameBean.converter}" id="sdSaleOrderBeanExampleSysTitleName" value="#{sdSaleOrderBean.example.sysTitleName}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTitleNameBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="sdSaleOrderBeanExampleSysTitleName" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{sdSaleOrderBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{sdSaleOrderBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="sdSaleOrderBeanPageItems" styleClass="data-table" value="#{sdSaleOrderBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="So No"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoNo" value="#{_item.soNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Code"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoCode" value="#{_item.soCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Descr"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoDescr" value="#{_item.soDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Date"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoDate" value="#{_item.soDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Discount Perc"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoDiscountPerc" value="#{_item.soDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{sdSaleOrderBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
